.login-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.login-content {
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.login-box {
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    &:hover {
        transform: translateY(-5px);
        box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2);
    }
}

.welcome-section {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;
    position: relative;
    overflow: hidden;

    &::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
        animation: rotate 20s linear infinite;
    }

    .brand {
        position: relative;
        z-index: 1;

        .brand-title {
            font-size: 2.8rem;
            font-weight: 800;
            margin-bottom: 1rem;
            background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .brand-desc {
            font-size: 1.1rem;
            opacity: 0.95;
            font-weight: 300;
            letter-spacing: 0.5px;
        }
    }

    .illustration {
        position: relative;
        z-index: 1;

        img {
            width: 100%;
            max-width: 400px;
            filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
        }
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.form-section {
    flex: 1;
    padding: 4rem;
    background: white;

    .form-header {
        margin-bottom: 2rem;
        text-align: center;

        h2 {
            font-size: 2rem;
            color: #2c3e50;
            margin-bottom: 0.5rem;
        }

        p {
            color: #7f8c8d;
        }
    }
}

.login-form {
    max-width: 400px;
    margin: 0 auto;

    .el-form-item {
        margin-bottom: 1.5rem;
    }

    .el-input {
        :deep(.el-input__wrapper) {
            box-shadow: none;
            border: 1px solid #dcdfe6;
            border-radius: 8px;
            height: 48px;

            &.is-focus {
                border-color: #409eff;
                box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.1);
            }
        }

        :deep(.el-input__prefix) {
            margin-left: 10px;
        }
    }
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;

    .forgot-link {
        color: #409eff;
        text-decoration: none;

        &:hover {
            text-decoration: underline;
        }
    }
}

.submit-btn {
    width: 100%;
    height: 52px;
    border-radius: 12px;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);

    &:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    }

    &:active {
        transform: translateY(0);
    }
}

.register-link {
    text-align: center;
    color: #7f8c8d;

    a {
        color: #409eff;
        text-decoration: none;

        &:hover {
            text-decoration: underline;
        }
    }
}

.background-decoration {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.gradient-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.circle-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    top: -200px;
    right: -100px;
}

.circle-2 {
    width: 450px;
    height: 450px;
    background: linear-gradient(135deg, #23a6d5 0%, #23d5ab 100%);
    bottom: -150px;
    left: -150px;
}

.circle-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #ff0844 0%, #ffb199 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@media (max-width: 1024px) {
    .welcome-section {
        display: none;
    }
}

.password-toggle {
    cursor: pointer;
    color: #606266;
    font-size: 16px;
    margin-right: 10px;

    &:hover {
        color: #409eff;
    }
}

.custom-message {
    background: #f0f9eb;
    border-color: #e1f3d8;
}
